<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/items.css" />
<div id="container" class="photos clearfix">
    <?PHP if(isset(Yii::app()->user->id)) { ?>
    <?php
    $this->widget('zii.widgets.CListView', array(
        'dataProvider' => $model->searchMyAlbum(),
        'itemView'=>'_myAlbumListItem',   // refers to the partial view named '_post'
        'sortableAttributes'=>array(
            'thoi_diem_upload'=>'Thời điểm upload',
            'id' => 'Testing',
        ),
    )); 
    ?>
</div>
<script type="text/javascript">
    $(function () {

        var $container = $('#container .items');

        $container.imagesLoaded(function () {
            $container.isotope({
                itemSelector: '.photo'
            });
        });
    });
</script>
<?PHP } else echo "Xin lỗi nhưng bạn chưa đăng nhập!"; ?>
</div>